# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.
class Article(models.Model):
	#文章id
	#article.id =models.AutoField(auto_created=True, primary_key=True)
	title         =models.CharField(max_length=32, default='title')
	brief_content =models.TextField(null=True)
	content       =models.TextField(null=True)
	publish_date  =models.DateTimeField(auto_now=True)
	#后台字段列表显示内容
	def __unicode__(self):
	    return self.title


